package com.u2ds.dss.tools.util;

import java.text.DecimalFormat;

/**
 * Created by Ethan.Yuan on 2017/1/23.
 */
public class CourtPrice {
    private Double price;

    public void setPrice(Double price) {
        this.price = price;
    }

    public Double getPrice() {
        /**
         * 保留两位小数
         */
        DecimalFormat df = new DecimalFormat("#.##");
        return Double.parseDouble(df.format(price));
    }
}
